﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AUV5.Web.Testing
{
    public partial class ImageDemo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Unnamed1_Click(object sender, EventArgs e)
        {
            //string filepath=Server.MapPath("/UploadFile/"+FileUpload1.PostedFile.FileName);

            //System.IO.Stream str = FileUpload1.PostedFile.InputStream;
            //System.Drawing.Image img = System.Drawing.Image.FromStream(str);


            ////string thumbPath = Server.MapPath("/UploadFile/thumb.jpg");
            ////Common.FileHelper.MakeThumbNail(filepath, thumbPath, 450, 450);

            //string destPath=Server.MapPath("/UploadFile/scale.jpg");
            ////Common.FileHelper.MakeScaleMap(img, 450, 450, destPath);

            //string cutPath = Server.MapPath("/UploadFile/450.jpg");
            //Common.FileHelper.CutImage(destPath, 450, 450, cutPath);

        }
    }
}